home *** CD-ROM | disk | FTP | other *** search
/ 600 Games / 600games.iso / Acao / OperationMaus.swf / scripts / frame_24 / PlaceObject2_588_562 / CLIPACTIONRECORD onClipEvent(enterFrame).as
Encoding:
Text File  |  2005-08-08  |  5.6 KB  |  202 lines

  1. onClipEvent(enterFrame){
  2.    if(_root["2"] == 1)
  3.    {
  4.       if(!_root.land.back.hitTest(this._x + 10,this._y,true))
  5.       {
  6.          right = true;
  7.       }
  8.       else
  9.       {
  10.          right = false;
  11.       }
  12.       if(!_root.land.back.hitTest(this._x - 10,this._y,true))
  13.       {
  14.          left = true;
  15.       }
  16.       else
  17.       {
  18.          left = false;
  19.       }
  20.       if(!_root.land.back.hitTest(this._x,this._y + 10,true))
  21.       {
  22.          down = true;
  23.       }
  24.       else
  25.       {
  26.          down = false;
  27.       }
  28.       if(!_root.land.back.hitTest(this._x,this._y - 10,true))
  29.       {
  30.          up = true;
  31.       }
  32.       else
  33.       {
  34.          up = false;
  35.       }
  36.       if(Key.isDown(38) and up)
  37.       {
  38.          if(_root.land._y >= 8000)
  39.          {
  40.             if(_root.player._y >= 6.8)
  41.             {
  42.                _root.ros.gos.gotoAndPlay("away");
  43.                _root["6"] = 2;
  44.                _root.player._y -= schnell;
  45.                this.gotoAndPlay("oben");
  46.             }
  47.          }
  48.          if(_root.player._y >= 400 && _root.land <= 8000 && _root["6"] == 1)
  49.          {
  50.             _root.player._y -= schnell;
  51.             this.gotoAndPlay("oben");
  52.             _root.ros.gos.gotoAndPlay("away");
  53.          }
  54.          else if(_root.player._y <= 400 && _root.land._y <= 8000)
  55.          {
  56.             _root.land._y += schnall;
  57.             _root.ober._y += schnall;
  58.             this.gotoAndPlay("oben");
  59.             _root.ros.gos.gotoAndPlay("away");
  60.          }
  61.       }
  62.       if(Key.isDown(40) and down)
  63.       {
  64.          if(_root.player._y <= 560.2)
  65.          {
  66.             _root.player._y += schnell;
  67.             this.gotoAndPlay("unten");
  68.          }
  69.       }
  70.       if(Key.isDown(37) and left)
  71.       {
  72.          if(_root.player._x >= 5.25)
  73.          {
  74.             this._x -= rl;
  75.             this.gotoAndPlay("links");
  76.          }
  77.       }
  78.       if(Key.isDown(39) and right)
  79.       {
  80.          if(_root.player._x <= 443.25)
  81.          {
  82.             this._x += rl;
  83.             this.gotoAndPlay("rechts");
  84.          }
  85.       }
  86.       if(Key.isDown(38) and up && (Key.isDown(39) and right))
  87.       {
  88.          if(_root.land._y >= 8000)
  89.          {
  90.             _root.player._y -= v;
  91.             _root.gos.gotoAndPlay("away");
  92.             this.gotoAndPlay("schraegobenrechts");
  93.             _root.schraegobenrechts.gotoAndPlay(2);
  94.          }
  95.          if(_root.player._y >= 400 && _root.land <= 8000)
  96.          {
  97.             this.gotoAndPlay("schraegobenrechts");
  98.             _root.gos.gotoAndPlay("away");
  99.             _root.schraegobenrechts.gotoAndPlay(2);
  100.             _root.player._y -= v;
  101.          }
  102.          if(_root.player._y <= 400 && _root.land._y <= 8000)
  103.          {
  104.             this.gotoAndPlay("schraegobenrechts");
  105.             _root.gos.gotoAndPlay("away");
  106.             _root.schraegobenrechts.gotoAndPlay(2);
  107.             _root.land._y -= hh;
  108.             _root.ober._y -= hh;
  109.          }
  110.       }
  111.       if(Key.isDown(38) and up && (Key.isDown(37) and left))
  112.       {
  113.          if(_root.land._y >= 8000)
  114.          {
  115.             _root.player._y -= v;
  116.             this.gotoAndPlay("schraegobenlinks");
  117.             _root.gos.gotoAndPlay("away");
  118.             _root.schraegobenlinks.gotoAndPlay(2);
  119.          }
  120.          if(_root.player._y >= 400 && _root.land <= 8000)
  121.          {
  122.             this.gotoAndPlay("schraegobenlinks");
  123.             _root.gos.gotoAndPlay("away");
  124.             _root.schraegobenlinks.gotoAndPlay(2);
  125.             _root.player._y -= v;
  126.          }
  127.          if(_root.player._y <= 400 && _root.land._y <= 8000)
  128.          {
  129.             this.gotoAndPlay("schraegobenlinks");
  130.             _root.gos.gotoAndPlay("away");
  131.             _root.schraegobenlinks.gotoAndPlay(2);
  132.             _root.land._y -= hh;
  133.             _root.ober._y -= hh;
  134.          }
  135.       }
  136.       if(Key.isDown(40) and down && (Key.isDown(37) and left))
  137.       {
  138.          if(_root.player._y <= 560.2)
  139.          {
  140.             this.gotoAndPlay("schraeguntenlinks");
  141.             _root.schraeguntenlinks.gotoAndPlay(2);
  142.             _root.player._y += v;
  143.          }
  144.       }
  145.       if(Key.isDown(40) and down && (Key.isDown(39) and right))
  146.       {
  147.          if(_root.player._y <= 560.2)
  148.          {
  149.             this.gotoAndPlay("schraeguntenrechts");
  150.             _root.schraeguntenrechts.gotoAndPlay(2);
  151.             _root.player._y += v;
  152.          }
  153.       }
  154.       if(Key.isDown(65))
  155.       {
  156.          if(_root.board.ammunition >= 1)
  157.          {
  158.             if(_root["13"] == 1)
  159.             {
  160.                _root.schussound.gotoAndPlay(2);
  161.                if(_root["12"] == 1)
  162.                {
  163.                   _root.schussoben.play();
  164.                }
  165.                if(_root["12"] == 2)
  166.                {
  167.                   _root.schussunten.play();
  168.                }
  169.                if(_root["12"] == 3)
  170.                {
  171.                   _root.schussrechts.play();
  172.                }
  173.                if(_root["12"] == 4)
  174.                {
  175.                   _root.schusslinks.play();
  176.                }
  177.                if(_root["12"] == 5)
  178.                {
  179.                   _root.schussobenrechts.play();
  180.                }
  181.                if(_root["12"] == 6)
  182.                {
  183.                   _root.schussobenlinks.play();
  184.                }
  185.                if(_root["12"] == 7)
  186.                {
  187.                   _root.schussuntenrechts.play();
  188.                }
  189.                if(_root["12"] == 8)
  190.                {
  191.                   _root.schussuntenlinks.play();
  192.                }
  193.             }
  194.          }
  195.          else if(_root.board.ammunition <= 0)
  196.          {
  197.             _root.reload.play();
  198.          }
  199.       }
  200.    }
  201. }
  202.